package com.itheima.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

@Data
@TableName("tb_user")
public class User {
    private Integer id;

    private Integer roleId;

    private String userName;

    private String loginName;

    private String password;

    @TableField(exist = false)
    private Integer areaId;

    private String secret;

    private String roleCode;

    private String mobile;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long regionId;

    private String regionName;

    private Boolean status;

    @TableField(exist = false)
    private Integer companyId;

    private String image;
}
